home *** CD-ROM | disk | FTP | other *** search
/ Champak 52 / Volume 52 - JOGO DISK .iso / Games / sandwichcooking.swf / scripts / DefineButton2_418 / BUTTONCONDACTION on(release).as < prev    next >
Text File  |  2007-09-27  |  838b  |  37 lines

  1. on(release){
  2.    this.stopDrag();
  3.    this.gotoAndStop(1);
  4.    if(this.hitTest(_parent.lolerham))
  5.    {
  6.       this._x = targetX;
  7.       this._y = targetY;
  8.    }
  9.    if(this.hitTest(_root.chop.edrop))
  10.    {
  11.       _root.txtC._visible = true;
  12.       _root.txtC.play();
  13.       this._x = targetX;
  14.       this._y = targetY;
  15.    }
  16.    if(this.hitTest(_root.fry.fdrop))
  17.    {
  18.       _root.fry.eggx._visible = true;
  19.       this._x = targetX;
  20.       this._y = targetY;
  21.       if(_root.chr._currentframe == 1)
  22.       {
  23.          _root.txtX._visible = true;
  24.          _root.txtX.play();
  25.          _root.chr.gotoAndPlay(11);
  26.          this._x = targetX;
  27.          this._y = targetY;
  28.       }
  29.    }
  30.    else if(this.hitTest(_root.chr.idrop))
  31.    {
  32.       _root.chr.reggs._visible = true;
  33.       this._x = targetX;
  34.       this._y = targetY;
  35.    }
  36. }
  37.